package com.jack.blog.dao;

import com.jack.blog.entity.Notice;
import org.apache.ibatis.annotations.Param;

import java.sql.Timestamp;
import java.util.List;

public interface NoticeMapper {

    List<Notice> queryNotices(@Param("uid")int uid);

    int queryTopByUid(@Param("uid")int uid);
    void insertNotice(@Param("notice")Notice notice);

    void updateNoticeTop(@Param("id") int id, @Param("top")boolean top);

    void deleteNotice(@Param("id") int id);

}
